home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / bchelp10.zip / TI658.ASC < prev    next >
Text File  |  1991-09-11  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Borland C                              NUMBER  :  658
  9.   VERSION  :  2.0
  10.        OS  :  PC DOS
  11.      DATE  :  September 11, 1991                       PAGE  :  1/1
  12.  
  13.     TITLE  :  "Unrecoverable Application Error" (UAE)
  14.  
  15.  
  16.  
  17.  
  18.   "Unrecoverable  Application  Error"  messages    from  a  Windows
  19.   application  are  commonly  caused  by supplying incorrect export
  20.   information to the linker for an application's functions.
  21.  
  22.   To check that you are supplying appropriate options to the linker
  23.   for your application or  DLL,  review the section in Chapter 3 of
  24.   the  User's Guide that deals with exports.  This  section  has  a
  25.   table with 8 columns  describing  the  possible  combinations you
  26.   might have used  to  build  your  program.   If the setup of your
  27.   program corresponds to one of the last three columns, chances are
  28.   that your program was  not  built correctly (or, at least, as you
  29.   intended).  Column 5 corresponds  to  the  'classical'  method of
  30.   building windows programs  (that  is, all exports are declared in
  31.   the module definition file ( the .def file )).
  32.  
  33.   The columns that use -WE or -WDE will build 'better' code  in the
  34.   sense that  the compiler will not make 'exportable' any functions
  35.   that it does not actually export.  However, it is here  that many
  36.   people  will  run  into problems.   If  you  have  any  functions
  37.   declared as exports in  the  .def file but the module is compiled
  38.   with -WE or  -WDE,  then  you  probably  have  built  the program
  39.   incorrectly (the function will be exported only if it is preceded
  40.   by _export in the source code).
  41.  
  42.   If  the  offending  code is NOT a DLL, it is  often  possible  to
  43.   overcome  the  UAE  through  the  use  of  "Smart Callbacks" (-WS
  44.   option).  See   pages  112-113  in  the  User's  Guide  for  more
  45.   information on Smart Callbacks.
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.